import http from "../http/index"

export default {
    upload: {
        name: '类目上传',
        url: '/api/upload',
        call: async function (params: any = {}) { 
            return await http.post(this.url, params)
        }
    },
    imglist: {
        name: '获取图片列表',
        url: '/api/upload',
        //async表示异步方法 结合await 使用 await是等待异步方法执行完毕之后再继续往下执行
        call: async function (params: any = {}){ 
           return await http.get(this.url,params)
        }
        
    }
}